package ru.pb.game.network.engine.client.packets;

import ru.pb.game.network.clients.GameClient;
import ru.pb.game.objects.model.players.Player;
import ru.pb.global.network.engine.packets.ServerPacket;

/**
 * @author: Felixx
 */
public abstract class GameServerToClientPacket extends ServerPacket<GameClient>
{
	@Override
	public void runImpl()
	{}

	@Override
	public String toString()
	{
		return "[GS -> C] " + getClass().getSimpleName();
	}

	public Player getPlayer()
	{
		return getClient() != null ? getClient().getPlayer() : getPlayer();
	}
}